package com.yl.pattern.behavioralmodel.visitor;

/**
 * @Author 小羊
 * @Date 1/11/2024下午 4:53
 * @ClassName Client
 * @Description Client
 */
public class Client {
    public static void main(String[] args) {
        Home home = new Home();

        home.add(new Cat());
        home.add(new Dog());

        Owner owner = new Owner();
        home.action(owner);
    }
}
